<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Random 函数</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="random.examples.html">« 范例</a></li>
      <li style="float: right;"><a href="function.getrandmax.html">getrandmax »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.random.html">Random</a></li>
    <li>Random 函数</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ref.random" class="reference">
 <h1 class="title">Random 函数</h1>

 


































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="function.getrandmax.html">getrandmax</a> — 显示随机数最大的可能值</li><li><a href="function.lcg-value.html">lcg_value</a> — 组合线性同余发生器</li><li><a href="function.mt-getrandmax.html">mt_getrandmax</a> — 显示随机数的最大可能值</li><li><a href="function.mt-rand.html">mt_rand</a> — 通过梅森旋转（Mersenne Twister）随机数生成器生成随机值</li><li><a href="function.mt-srand.html">mt_srand</a> — 播下一个更好的随机数发生器种子</li><li><a href="function.rand.html">rand</a> — 产生一个随机整数</li><li><a href="function.random-bytes.html">random_bytes</a> — Get cryptographically secure random bytes</li><li><a href="function.random-int.html">random_int</a> — 生成加密安全的伪随机整数</li><li><a href="function.srand.html">srand</a> — 播下随机数发生器种子</li></ul>
</div>
</div></div></body></html>